In this module will discuss
how to control inbound and outbound access in a serverless
cloud run environment. All applications, except some type of
incoming inbound ingress requests and deliver some kind of outgoing outbound
egress responses via the systems network. A common reason for exerting finer
control over this traffic is to improve the security of your application. For example, you might want to only
allow inbound requests from certain geographic areas, allow requests only
from certain service accounts or disable the default run dot app domain. Controlling outbound traffic is useful
if you want to prevent connections to unknown or dangerous hosts as
an additional layer of security or allow cloud run service to
connect with internal IPs. Another use cases if you have more than
one cloud run service in your project and you want to make sure these services
can only communicate with each other. To make this process more concrete,
this is what you'll learn in this module. You learn how to connect from your cloud
run service to resources with an internal IP address in your project,
something that is not possible by default. Prevent outbound traffic too dangerous or
unwanted hosts. Filter inbound requests
using content based rules. You can use this to prevent
common web application attacks or set up IP based filters. And allow access to specific
service accounts only. This is useful if you want a cloud run
service to be invoked only from pub sub another cloud run service or another resource on Google cloud
with a service account identity.